package com.neuedu.hcp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.neuedu.hcp.entity.RecoveryPlan;
import com.neuedu.hcp.entity.RespBean;
import com.neuedu.hcp.entity.RespPageBean;
import com.neuedu.hcp.entity.Staff;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 第八组
 * @since 2021-04-26
 */
public interface IStaffService extends IService<Staff> {
    /**
     * 根据用户名获取用户
     * @param username
     * @return
     */
    Staff getStaffByUsername(String username);

    /**
     * 登陆之后生成token
     * @param username
     * @param password
     * @param code
     * @param request
     * @return
     */
    RespBean login(String username, String password, String code, HttpServletRequest request);


    int insert(Staff staff);

    RespPageBean getStaffListByPage(Integer currentPage, Integer size, Staff staff);
}
